import { requestClient } from '#/api/request';

export async function loadCreate() {
  return requestClient.get('/admin/auth.admin/index', {
    page: 1,
    initKey: 'id',
    initValue: '',
    select: true,
    quick_search: '',
    limit: 10,
  });
}
export async function getAction(url: string, data?: any) {
  return requestClient.get(url, data);
}

export async function postAction(url: string, data: any) {
  return requestClient.post(url, { ...data });
}

export async function deleteAction(url: string, data: any) {
  return requestClient.delete(url, { ...data });
}

export async function putAction(url: string, data: any) {
  return requestClient.put(url, { ...data });
}
